<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
Hello
<p id="ppp">HeiHei</p>

<script>
    var $ = function(id) {
        return document.getElementById(id);
    };

    var hide = function(document) {
        document.style.display = "none";
    };

    (function m1() {
        console.log('in');
        // $('ppp').style.display = "none";
        var ppp = $('ppp');
        hide(ppp);
        console.log(ppp);
    })()
</script>
</body>
</html>
